package com.crm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crm.entity.Director;
import com.crm.mapper.DirectorMapper;
import com.crm.service.DirectorService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhangzhen
 * @since 2025-05-13
 */
@Service
public class DirectorServiceImpl extends ServiceImpl<DirectorMapper, Director> implements DirectorService {


    @Override
    public List<Director> getDirectorByEntity(int entityId) {
        LambdaQueryWrapper<Director> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Director::getEntityId, entityId);
        return this.list(queryWrapper);
    }
}
